//
//  MainTabBarController.m
//  chanyouji
//
//  Created by xiacheng on 16/8/17.
//  Copyright © 2016年 chanyouji. All rights reserved.
//

#import "MainTabBarController.h"

@implementation MainTabBarController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *nameArry = @[@"Home",@"Travel",@"Schedule",@"Mine"];
    NSMutableArray *controllerArry = [NSMutableArray array];
    for (NSString *name in nameArry) {
        UIStoryboard *stroyBoard = [UIStoryboard storyboardWithName:name bundle:nil];
        UIViewController *nav =[stroyBoard instantiateInitialViewController];
        [controllerArry addObject:nav];
    }
    self.viewControllers = controllerArry;

    
    
}
@end
